package com.site.wisdom_construction.service.publicModule;

import com.site.wisdom_construction.dao.publicModule.ProfessionDao;
import com.site.wisdom_construction.entity.publicModule.Profession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2021/12/29
 * @Description
 */
@Service
public class ProfessionService implements ProfessionDao {
    @Autowired
    private ProfessionDao professionDao;

    @Override
    public int insertProfession(Map map) {
        return professionDao.insertProfession(map);
    }

    @Override
    public int deleteProfession(Map map) {
        return professionDao.deleteProfession(map);
    }

    @Override
    public int updateProfession(Map map) {
        return professionDao.updateProfession(map);
    }

    @Override
    public List<Profession> findProfessionByPage(Map map) {
        return professionDao.findProfessionByPage(map);
    }

    @Override
    public long Total(Map map) {
        return professionDao.Total(map);
    }

    @Override
    public List<Profession> selectProfession(Map map) {
        return professionDao.selectProfession(map);
    }
}
